package com.huopaolan.yohuoshop.Di.Modules;

import com.huopaolan.yohuoshop.Mvp.Contract.CommunityFragmentContract;
import com.huopaolan.yohuoshop.Mvp.Model.CommunityFragmentModel;

import javax.inject.Inject;

import dagger.Module;
import dagger.Provides;

@Module
public class ShowCommunityModules {
    private CommunityFragmentContract.CommunityShowIView iView;

    @Inject
    public ShowCommunityModules(CommunityFragmentContract.CommunityShowIView iView) {
        this.iView = iView;
    }

    @Provides
    public CommunityFragmentContract.CommunityShowIView providerIView() {
        return iView;
    }

    @Provides
    public CommunityFragmentContract.CommunityShowIModel providerIModel() {
        return new CommunityFragmentModel();
    }
}
